package com.example.elasticsearchhepler.entity;

import com.example.elasticsearchhepler.annotations.ESDocument;
import com.example.elasticsearchhepler.annotations.ESField;
import com.example.elasticsearchhepler.entity.common.BaseEsEntity;
import com.example.elasticsearchhepler.enums.ESFieldType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ESDocument(indexName = "test_index_auto_0606_001")
@Component
public class TestIndexAuto001Entity extends BaseEsEntity implements Serializable {

    private static final long serialVersionUID = -7298596379026894107L;

    @ESField(name = "address",type = ESFieldType.Object,childType = LogisiticsInfoModel.class)
    private LogisiticsInfoModel address;
}
